package com.sunkey.log.util;

import java.util.regex.Matcher;
import java.util.regex.Pattern;


/**
 * 
 * @author sunkey
 * @date Feb 5, 2015
 */
public abstract class StringUtils extends org.apache.commons.lang3.StringUtils{

    public static String replaceBlank(String str) {
        String dest = "";
        if (str != null) {
            Pattern p = Pattern.compile("\\t|\r|\n");
            Matcher m = p.matcher(str);
            dest = m.replaceAll("");
            dest = dest.replaceAll(" +", " ");
        }
        return dest;
    }
}
